// import Loadable from "react-loadable"
// import Loadable from '@loadable/component'

import Index from "../views/index/index";
import ModuleList from "../views/moduleList/moduleList";
import ModuleShop from "../views/moduleList/moduleShop";
import Chat from "../views/chat/index";

// import React from 'react'
// const defaultLoad = () => <div />

const config = [
  {
    path: "/",
    component: Index,
    exact: true,
    // Loadable({
    //     loader: () => import('../views/index/index'),
    //     loading: defaultLoad
    // }),
    meta: {
      title: "首页",
      visible: false,
    },
  },
  {
    path: "/index",
    component: Index,
    // Loadable({
    //     loader: () => import('../views/index/index'),
    //     loading: defaultLoad
    // }),
    meta: {
      title: "首页",
      visible: false,
    },
  },
  {
    path: "/moduleList",
    component: ModuleList,
    // Loadable({
    //     loader: () => import('../views/moduleList/moduleList'),
    //     loading: defaultLoad
    // }),
    meta: {
      title: "功能列表",
      visible: false,
    },
  },
  {
    path: "/moduleShop",
    component: ModuleShop,
    // Loadable({
    //     loader: () => import('../views/moduleList/moduleList'),
    //     loading: defaultLoad
    // }),
    meta: {
      title: "功能商店",
      visible: false,
    },
  },
  {
    path: "/chat",
    component: Chat,
    meta: {
      title: "在线聊天",
      visible: false,
    },
  },
];

export default config;
